//
//  TextFiledPageView.swift
//  SwiftUIDemo
//
//  Created by Kael on 2019/12/8.
//  Copyright © 2019 Kael. All rights reserved.
//

import SwiftUI

struct TextFiledPageView: View {
    @State var name = "kael"
    @State var nameText = "kael"

    
    var body: some View {
        TextField("place holer text", text: self.$nameText, onEditingChanged: { (Bool) in
            
        }) {
            
        }
        .padding(10)
        .frame(height: 50)
        .textFieldStyle(RoundedBorderTextFieldStyle())
        .padding(EdgeInsets(top: 0, leading: 20, bottom: 0, trailing: 20))

    }
}

struct TextFiledPageView_Previews: PreviewProvider {
    static var previews: some View {
        TextFiledPageView()
    }
}
